// import { createStore, applyMiddleware } from 'redux'
// import rootReducer from './reducers'

// import thunk from 'redux-thunk'
// import { composeWithDevTools } from 'redux-devtools-extension'
// const middlewares = composeWithDevTools(applyMiddleware(thunk))

// const store = createStore(rootReducer, middlewares)
// export default store
import { createStore, applyMiddleware } from 'redux'
import { composeWithDevTools } from 'redux-devtools-extension'
import thunk from 'redux-thunk'
import reducer from './reducers'

const store = createStore(reducer, composeWithDevTools(applyMiddleware(thunk)))
export default store